package com.yanqu.road.entity.log;

import com.yanqu.road.entity.FieldTypeAnnotation;

import java.util.Date;

@FieldTypeAnnotation(tableName = "t_l_activity_guagifts_receive", autoSave = true)
public class LogGuaGiftsReceiveGift {

    @FieldTypeAnnotation(desc = "活动ID", isIndex = true)
    private int activityId;
    @FieldTypeAnnotation(desc = "玩家ID", isIndex = true)
    private long userId;
    @FieldTypeAnnotation(desc = "送花玩家ID")
    private long sendUserId;
    @FieldTypeAnnotation(desc = "花id")
    private int goodsId;
    @FieldTypeAnnotation(desc = "花数")
    private int goodsCount;
    @FieldTypeAnnotation(desc = "增加人气值")
    private int scoreAdd;
    @FieldTypeAnnotation(desc = "时间")
    private Date time;

    public LogGuaGiftsReceiveGift(int activityId, long userId, long sendUserId, int goodsId, int goodsCount, int scoreAdd) {
        this.activityId = activityId;
        this.userId = userId;
        this.sendUserId = sendUserId;
        this.goodsId = goodsId;
        this.goodsCount = goodsCount;
        this.scoreAdd = scoreAdd;
        this.time = new Date();
    }

    public long getSendUserId() {
        return sendUserId;
    }

    public void setSendUserId(long sendUserId) {
        this.sendUserId = sendUserId;
    }

    public int getActivityId() {
        return activityId;
    }

    public void setActivityId(int activityId) {
        this.activityId = activityId;
    }

    public long getUserId() {
        return userId;
    }

    public void setUserId(long userId) {
        this.userId = userId;
    }

    public int getGoodsId() {
        return goodsId;
    }

    public void setGoodsId(int goodsId) {
        this.goodsId = goodsId;
    }

    public int getGoodsCount() {
        return goodsCount;
    }

    public void setGoodsCount(int goodsCount) {
        this.goodsCount = goodsCount;
    }

    public int getScoreAdd() {
        return scoreAdd;
    }

    public void setScoreAdd(int scoreAdd) {
        this.scoreAdd = scoreAdd;
    }

    public Date getTime() {
        return time;
    }

    public void setTime(Date time) {
        this.time = time;
    }
}
